<template>
    <div class="bargain-container" @click="tobargindetails" > 
        <div class="bargain-home-img">
            <img :src=item.pic alt="">
        </div>
        <div class="bargain-home-title">
            <div class="bargain-home-title-right-name">
                {{item.name}}
            </div>
            <div class="bargain-home-title-right-btn">
                <div>
                    <div class="bargain-home-title-right-price">￥{{item.minPrice}}</div>
                    <div>低价</div>
                </div>
                <div>
                    <div>{{item.originalPrice}}</div>
                    <div>原价</div>
                </div>
                <div>
                    <div>{{item.minScore}}</div>
                    <div>限量</div>
                </div>
            </div>
        </div>
    </div>
</template>
<script>
import '../../../css/homeconmecss/bargain.css'
export default {
    props:{
        item:Object
    },
    mounted(){
        window.console.log(this.item)
    },
    methods: {
        // todetalle(){
        //     this.$emit("todetalle",this.item)
        // }
        tobargindetails(){
            
            this.$router.push("Bargindetails")
        }
    },
}
</script>
<style>

</style>